package com.gks.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gks.entities.Article;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    @Select("SELECT * FROM article ORDER BY create_time DESC")
    List<Article> getAllArticles();
}
